#include <string>
#include "Customer.h"
#include "Order.h"

using namespace std;

class Restaurant {

public:

	//CTOR DTOR ASSG-OP
	Restaurant(void);
	~Restaurant(void);
	const Restaurant& operator=(const Restaurant& rest);

	string getCustomers() const;
	string getOrders() const;
	int addCustomer(const string& name);
	string removeCustomer(int cIndex);
	string removeOrder(int cIndex);

	string takeOrder(int index, const string& drink, const string& first, const string& main, const string& last);
	string changeOrder(int index, const string& drink, const string& first, const string& main, const string& last);

	bool checkOrderExists(int index);
	bool checkCustomerExists(int index);

	

private:
	//this func handles both taking new orders & changing it
	string handleOrder(int usage,int index, const string& drink, const string& first, const string& main, const string& last);

	Customer** customers;
	Order**    orders;
	int arrSize;
	int arrIndex;

	int handleArray();
	int addCustomerToArray(Customer& customer);
};

